﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SBSimpleLib.States
{
    public abstract class AlivePseudoState : LoggedInPseudoState
    {
        public override bool doNeedToRun()
        {
            bool ret = base.doNeedToRun();
            if (!ret)
                return ret;
            if (MyWoW.ObjectManager.ObjectManager.Me.IsAlive)
                return true;
            else
            {
                whyNotRun = "Char dead";
                return false;
            }
        }

    }
}
